<div class="pageContent">
	<form action="<?php echo url('card/pay');?>" method="post" id="payform" onsubmit="return validateCallback(this,navTabAjaxDone)">
		<div class="pageFormContent" layoutH="60">
			
			
				<p>
				<label>账号或电话：</label>
				<input type="text" name="acctname" id="payacctname"  size= "16" />
				</p>
					<p>
				<label>储值卡卡号：</label>
				<input type="text" name="cardname" value="<?php echo $cardname;?>"/>
				</p>
				<p>
				<label>储值卡密码：</label>
				<input type="text" name="password" value="<?php echo $password;?>"/>
				</p>
				
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit" id="onconfigSub">充值</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button class="close" type="button">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div> 
<script>
$(document).ready(function(){
	$("#onconfigSub").bind("click",function(){
		var m = $('#payacctname').val();
			if (m == '')
			{
				alertMsg.error('您提交的数据有误，请输入您要充值的号码！')
				
				}else{
					alertMsg.confirm('确认为 '+m+' 充值吗?', {
			            okCall: function(){
			            	  $('#payform').submit();
			                  return true;
			            				}
			            });
					}
			 return false;
	});

	})
</script>